package com.caishi.lkx.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.exam.model.NoteModel;
import com.caishi.lkx.exam.vo.QuestionVo;
import com.zzw.common.entity.BaseService;
import com.caishi.lkx.exam.ienum.type.QuestionCollectionType;


import java.util.List;
import java.util.Map;

public interface INoteService extends BaseService<NoteModel, String> {

    IPage<NoteModel> pageList(Page<NoteModel> pager, String userId, String relationId, String questionId, Integer verify);

    /**
     * 根据笔记获取集合下的题目
     *
     * @param relationId   集合id
     * @param relationType 集合类型
     * @param userId       用户id
     * @return
     */
    Map<String, List<QuestionVo>> getNoteQuestionCollection(String relationId, QuestionCollectionType relationType, String userId, Boolean flag, String categoryId);
     IPage<NoteModel> getNoteListMy(Page<NoteModel> page, String categoryId, String userId, QuestionCollectionType type);
}
